package com.ftg.learn.framework.mybatis.javabase.mapper;

import com.ftg.learn.framework.mybatis.javabase.entity.StudentEntity;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 *
 * 处理sql
 * @author lijiaxin
 * @version 1.0
 * @date 2023/9/4 10:03
 */

public interface StudentMapper1 {

    @Select("select * from student ")
    List<StudentEntity> showAll();


    List<StudentEntity> showListWithParameter(@Param("stu_sex") String stu_sex,@Param("stu_name") String stu_name);
}